const router = require('koa-router')();
const {shopCarModel} = require('../model/shopCar');
// 获取新闻
router.get('/shopCar', async (ctx, next) => {
    await shopCarModel.getShopCar(ctx);
});
// 增加新闻
router.post('/add/shopCar', async (ctx, next) => {
    await shopCarModel.addShopCar(ctx);
});
// 删除新闻
router.post('/delete/shopCar', async (ctx, next) => {
    await shopCarModel.deleteShopCar(ctx);
});
// 编辑新闻
router.post('/edit/shopCar', async (ctx, next) => {
    await shopCarModel.editShopCar(ctx);
});
module.exports = router;